package com.sooth.micro.field.service;

import com.dream.boot.impl.ServiceImpl;
import com.sooth.micro.field.mapper.MicroFieldMapper;
import com.sooth.micro.field.view.MicroFieldBo;
import com.sooth.micro.field.view.MicroFieldVo;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Description: 实体字段
 * @Author: moxa
 * @Date: 2023-12-01 19:48:36
 */
@RequiredArgsConstructor
@Service
public class MicroFieldServiceImpl extends ServiceImpl<MicroFieldVo, MicroFieldBo> implements IMicroFieldService {

    private final MicroFieldMapper fieldMapper;

    @Override
    public int deleteByEntityId(Long entityId) {
        return fieldMapper.deleteByEntityId(entityId);
    }

    @Override
    public List<MicroFieldBo> selectByEntityId(Long entityId) {
        return fieldMapper.selectByEntityId(entityId);
    }

    @Override
    public List<MicroFieldBo> selectPkByEntityId(Long entityId) {
        return fieldMapper.selectPkByEntityId(entityId);
    }

    @Override
    public List<MicroFieldBo> selectAddValueByEntityId(Long entityId) {
        return fieldMapper.selectAddValueByEntityId(entityId);
    }

    @Override
    public List<MicroFieldBo> selectEditValueByEntityId(Long entityId) {
        return fieldMapper.selectEditValueByEntityId(entityId);
    }
}
